package yunmouren.top.kaoui.Client.Tick;

import net.minecraft.client.Minecraft;
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
import net.minecraftforge.fml.common.gameevent.TickEvent;
import yunmouren.top.kaoui.Client.ui.MiniMap;

public class ClientTick {
    public ClientTick() {
    }

    @SubscribeEvent
    public void onClientTick(TickEvent.ClientTickEvent event) {
        if (!(Minecraft.getMinecraft().ingameGUI instanceof MiniMap)){
            Minecraft.getMinecraft().ingameGUI = new MiniMap(Minecraft.getMinecraft());
        }
    }
}
